<?php

namespace app\common\model\xilujob;

use think\Exception;
use think\Model;
use traits\model\SoftDelete;

class ResumeSkill extends Model
{

    use SoftDelete;

    protected $name = 'xilujob_resume_skill';

    protected $autoWriteTimestamp = 'int';
    //protected $dateFormat = 'Y-m-d H:i:s';

    protected $createTime = 'createtime';
    protected $updateTime = 'updatetime';
    protected $deleteTime = 'deletetime';

    protected $append = [
        'level'
    ];

    public function level() {
        return $this->belongsTo('SkillLevel','level_id','id',[],'LEFT');
    }

}
